cmake_minimum_required(VERSION 3.21)
project(Algorithm)

set(CMAKE_CXX_STANDARD 14)

add_executable(Algorithm main.cpp)
add_executable(Array1_1 ArraysAndStrings/FindTheCentralIndexOfTheArray.cpp)
add_executable(Array1_2 ArraysAndStrings/SearchForCaretPosition.cpp)
add_executable(Array1_3 ArraysAndStrings/MergeInterval.cpp)
add_executable(Array2_1 ArraysAndStrings/RotationMatrix.cpp)
add_executable(Array2_2 ArraysAndStrings/ZeroMatrix.cpp)
add_executable(Array2_3 ArraysAndStrings/DiagonalTraversal.cpp)
add_executable(Array3_1 ArraysAndStrings/LongestCommonPrefix.cpp)
add_executable(Array3_2 ArraysAndStrings/LongestPalindrome.cpp)
